// Bootstrap Markdown Editor 
// --------------------------------------------------

.md-editor {
  display: block;
  border: 1px solid @default-border-color;

  > .md-header, .md-footer {
    display: block;
    padding: 6px 4px;
    background: @gray-lighter;
  }

  > .md-header {
    margin: 0;
  }
  
  > .md-preview {
    border-top: 1px dashed @default-border-color;
    border-bottom: 1px dashed @default-border-color;
    min-height: 10px;
    overflow: auto;
  }

  > textarea {
    outline: 0;
    outline: thin dotted  \9; /* IE6-9 */
    margin: 0;
    display: block;
    padding: 10px;
    width: 100%;
    border: 0;
    border-top: 1px dashed @default-border-color;
    border-bottom: 1px dashed @default-border-color;
    background: @white;
  }
  
  .btn {
	border: 1px solid @default-border-color;
	background: @white;
	  &.btn-primary {
		background: @themeColor;
		border-color: darken(@themeColor, 3%);
	  }
	  .fa {
		font-size: @baseFontSize + 1;
	  }
	  
	  [class*=" fa-"], [class^=fa-], [class*=" glyphicon-"], [class^=glyphicon-] {
		margin-right: 0;
	  }
	  
	}
	
  .md-controls {
    float: right;
    padding: 3px;

    .md-control {
      right: 5px;
      color: #bebebe;
      padding: 3px 3px 3px 10px;
      &:hover {
        color: #333;
      }
    }
  }
	
  // fullscreen mode styles
  &.md-fullscreen-mode {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    padding: 60px 30px 15px;
    background: @white !important;
    border: 0 !important;

    .md-footer {
      display: none;
    }

    .md-input,
    .md-preview {
      margin: 0 auto !important;
      height: 100% !important;
      font-size: 20px !important;
      padding: 20px !important;
      color: #999;
      line-height: 1.6em !important;
      resize: none !important;
      box-shadow: none !important;
      background: @white !important;
      border: 0 !important;
    }

    .md-preview {
      color: #333;
      overflow: auto;
    }

    .md-input {
      &:hover,
      &:focus {
        color: #333;
        background: @white !important;
      }
    }

    .md-header {
      background: none;
      text-align: center;
      position: fixed;
      width: 100%;
      top: 20px;
    }

    .btn-group {
      float: none;
    }

    .btn {
      border: 0;
      background: none;
      color: #b3b3b3;

      &:hover,
      &:focus,
      &.active,
      &:active {
        box-shadow: none;
        color: #333;
      }
    }

    .md-fullscreen-controls {
      position: absolute;
      top: 20px;
      right: 20px;
      text-align: right;
      z-index: 1002;
      display: block;
      a {
        color: #b3b3b3;
        clear: right;
        margin: 10px;
        width: 30px;
        height: 30px;
        text-align: center;

        &:hover {
          color: #333;
          text-decoration: none;
        }
      }
    }

    .md-editor {
      height: 100% !important;
      position: relative;
    }
  }

  .md-fullscreen-controls {
    display: none;
  }
}

.md-nooverflow {
  overflow: hidden;
  position: fixed;
  width: 100%;    
}